import requst from './request'
// 查询学生信息
export function getProduct() {
    return requst({
        url: 'center/getCenterInfo',
        methods: "get",
        headers:{
            Token:localStorage.getItem('token')
          }
    })
}
// 查询课程列表
export function getDetails() {
    return requst({
        url: '/servicehall/courseInfo/getCourseInfoStu?limit=12&page=1&chargeStatus=1',
        method: 'get',
        headers:{
            Token:localStorage.getItem('token')
          }
    })
}
//查询章节信息
export function chapter(id) {
    return requst({
        url: `/servicehall/courseInfo/getHallCourseChapterList/${id}`,
        method: 'get',
        headers:{
            Token:localStorage.getItem('token')
          }
    })
}
//用户登录

export function login(data) {
    return requst({
        url: '/sys/login',
        method: 'post',
        data,
    })
}